<?php


namespace app\admin\model;


use think\Model;

class Share extends Model
{

    public function getLists()
    {
        $data=input();
        $limit = input('limit');
        $data['title'] && $where['title'] = ['like',"%{$data['title']}%"];

        $list = $this->where($where)->order('add_time desc')->paginate($limit)->toArray();
        $list['code'] = 0;//用于前台数据表格判断成功字段
        return $list;
    }
}